const getCurMoney = () => {

  return fetch( 'http://hd.lijag.cn/pay/getCurMoney' )
    .then(  res => {
      let { status, statusText } = res;
      return new Promise( ( resolve, reject ) => {
        if ( status === 200 ) {
          // 解析json
          res.json().then( data => {
            console.log(data, 'data');
            resolve( data );
          } );
        } else {
          reject( '获取当前赏金发生错误: ' + statusText );
        }
      } );})
};



module.exports = {
  getCurMoney
};